package com.member.server.mapper;

import com.member.server.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author gaojx1993
 * @version 1.0
 * @description AccountMapper
 * @since 2023/7/11 14:39
 */
@Mapper
public interface AccountMapper {

    Account selectById(@Param("id") Long id);

    List<Account> selectByMemberId(@Param("memberId") Long memberId);

    long updateBalanceById(@Param("balance") Long balance, @Param("id") Long id);

    long insert(Account account);
}
